//
//  FKChooseCitySectionHeader.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/18.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKChooseCitySectionHeader.h"

@interface FKChooseCitySectionHeader ()

@property (nonatomic, weak) UILabel *titleLabel;

@end

@implementation FKChooseCitySectionHeader

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setupSubviews];
    }
    return self;
}

- (void)setupSubviews
{
    UILabel *titleLabel = [UILabel fk_labelWithFont:fk_adjustBoldFont(16) textColor:fkColor333333];
    [self addSubview:titleLabel];
    self.titleLabel = titleLabel;
    
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(12);
        make.centerY.offset(0);
    }];
}

- (void)setTitle:(NSString *)title
{
    _title = title;
    
    self.titleLabel.text = title;
}


@end
